package com.woniuxy.light_smart.service;
import com.woniuxy.light_smart.dto.AreaDto;
import com.woniuxy.light_smart.entity.ApplicationRole;
import com.woniuxy.light_smart.entity.Area;
import com.woniuxy.light_smart.entity.Role;
import com.woniuxy.light_smart.vo.AreaCountVo;
import com.woniuxy.light_smart.vo.AreaRoleVo;
import com.woniuxy.light_smart.vo.AreaVo;

import java.util.List;
/**
* @author wts
* @description 针对表【area】的数据库操作Mapper
* @createDate 2022-12-07 11:35:22
* @Entity com.woniuxy.light_smart.entity.Area
*/
public interface AreaService {



    List<Area> getAll();

    int deleteByPrimaryKey(Long id);

    int insert(Area record);

    int insertSelective(Area record);

    Area selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Area record);

    int updateByPrimaryKey(Area record);

    List<Area> selectAll2(AreaDto areaDto);

    List<Area> selectAllArea();


    List<AreaVo> selectAllUser();


    List<Role> selectAllRole();

    List<AreaCountVo> selectAllUserCounte();

    List<Area> selectExportData(AreaDto area);

    List<AreaRoleVo> selectAllRoleAndArea();

    List<Integer> selectAllOneRole(Integer userId, Integer areaId);

    List<AreaVo> selectAllOne(Integer userId, Integer areaId);




//
//    List<User> selcetUserRole(List<Area> areaList);
}
